package com.example.springboot;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes= HelloController.class)
public class ChapterApplication {
    @Test
    public void contextLoads(){
    }
    @Autowired
    private HelloController helloController;
    @Test
    public void helloControllerTest(){
        String hello = helloController.hello();
        System.out.println(hello);
    }

}